package Java攻略._1_基础知识._1_lambda表达式;

import java.io.File;

public class _5_FilenameFilter接口的Lambda表达式实现 {

    public static void main(String[] args) {

        File fileDir = new File("src\\test\\java\\Java攻略\\_1_基础知识\\_1_lambda表达式");

        String[] list = fileDir.list(((dir, name) -> name.endsWith(".java")));

        for (String str : list
             ) {
            System.out.println(str);
        }
    }
}
